package com.unisound.tracelog.server.ui.model.request;

import com.unisound.tracelog.common.model.pojo.PageCondition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TraceLogListPageRequest extends PageCondition {
    private String serviceName;
    private String name;
    private Integer type;
    private Long elapsedTime;

    public void setServiceName(String serviceName) {
        this.serviceName = StringUtils.trimToNull(serviceName);
    }

    public void setName(String name) {
        this.name = StringUtils.trimToNull(name);
    }
}
